package com.knowledgeqa.system.exception;

import com.knowledgeqa.system.common.ResultCode;

/**
 * 未授权异常
 * 用于处理用户未登录或登录失效的情况
 */
public class UnauthorizedException extends BusinessException {

    public UnauthorizedException() {
        super(ResultCode.UNAUTHORIZED);
    }

    public UnauthorizedException(String message) {
        super(ResultCode.UNAUTHORIZED.getCode(), message);
    }

    public UnauthorizedException(String message, Throwable cause) {
        super(ResultCode.UNAUTHORIZED.getCode(), message, cause);
    }
}